﻿using System.Collections.Generic;
using DBConnection.Interfaces;

namespace DBConnection.Abstracts
{
    public class AVariable:IVariable
    {
        protected List<string> _item;
        protected AVariable()
        {
            _item=new List<string>();
        }
        protected AVariable(int capacity)
        {
            _item = new List<string>(capacity);
        }
        public virtual string this[int i]
        {
            get { return _item[i]; }
            set { _item[i] = value; }
        }
        public virtual void Add(string value)
        {
            _item.Add(value);
        }
    }
}
